//
//  NetworkRequest.h
//  cocopadsdownload
//
//  Created by ios on 16/9/8.
//  Copyright © 2016年 ios. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^success)(id responseObject);
typedef void(^failuer)(NSError *error);

@interface NetworkRequest : NSObject

+ (id)shareInstance;
/**get请求*/
-(void)getRequest:(NSString *)url parameter:(NSDictionary *)parameter success:(success)successBlock failuer:(failuer)failuerBlock;
/**post请求*/
-(void)postRequest:(NSString *)url parameter:(NSDictionary *)parameter success:(success)successBlock failuer:(failuer)failuerBlock;
/**上传图片*/
-(void)updataImage:(NSString *)url parameter:(NSDictionary *)parameter imageData:(NSData *)imageData fileName:(NSString *)fileName success:(success)successBlock failuer:(failuer)failuerBlock;

@end
